home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / September 96 / ODF, CFM-68K, AppleScript Weird < prev    next >
Encoding:
Internet Message Format  |  1996-09-19  |  2.1 KB  |  [TEXT/ttxt]

  1. Subject:     ODF, CFM-68K, AppleScript Weirdness
  2. Sent:        9/1/96 8:27 PM
  3. Received:    9/1/96 8:27 PM
  4. From:        brad@hutchings-software.com (Hutchings, Richard B. "Brad")
  5. Reply-To:    ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List
  7.  
  8.  
  9. What a great night to write code!!
  10.  
  11. This is one weird bug. Took me all evening to figure out how to repeat it.
  12.  
  13. My 68K project has AppleScriptLib linked in "weak". I'm using CW9 right off
  14. the CD. If I build the library, then open the part, it crashes (requiring
  15. restart) when it gets to its first OSA call. However, before it gets there,
  16. I've already checked the address of "::OSALoad" to make sure CFM loaded in
  17. the library.
  18.  
  19. Here's my Build/Test System Info:
  20.  
  21.     7.5.3, OD 1.1 Debug, Cyberdog 1.1 (with and without), LC 575, 36 MB,
  22.     with and without external drives.
  23.  
  24. Here are three startup scenarios that affect this bug:
  25.  
  26.     Scenario #1
  27.         Restart Mac
  28.         Open document containing Rapid-I Button
  29.         Cause OSA call to be made
  30.         Crash - Illegal Instruction
  31.  
  32.     Scenario #2
  33.         Restart Mac
  34.         Launch Script Editor Application
  35.         Quit Script Editor
  36.         Open document containing Rapid-I Button
  37.         Cause OSA call to be made
  38.         Success
  39.         Close document
  40.         Crash - illegal instruction
  41.  
  42.     Scenario #3
  43.         Restart Mac
  44.         Launch Script Editor Application
  45.         Open document containing Rapid-I Button
  46.         Cause OSA call to be made
  47.         Success
  48.         Close document
  49.         All is OK.
  50.  
  51. This suggests to me that CFM-68K from OD 1.1 is having some big problems.
  52. I've also tried this with CFM-68K from the latest MacOS SDK - same result.
  53. I've encountered scenario #1 on a PowerBook 170 (8 MB, 24 MB w/VM) and a
  54. Mac II (20 MB RAM) with Radius Rocket, although I don't have access to
  55. these machines right now to try scenarios #2 and #3. Thus, I don't think
  56. it's a problem for a particular machine.
  57.  
  58. I'm using native exceptions and RTTI for my build. Anybody have any ideas? 
  59.  
  60. Brad
  61.  
  62. <mailto: "Brad Hutchings" brad@hutchings-software.com>
  63. <http://www.hutchings-software.com>
  64.  
  65. Got OpenDoc? Got Cyberdog? Then beta-test Rapid-I Button! Point your dog to
  66. the Hutchings Software web site for downloading information.